package com.explore.demo.mapper;

import com.explore.demo.pojo.CollectRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gaolainan
 * @since 2021-04-21
 */
public interface CollectRelationMapper extends BaseMapper<CollectRelation> {


    /**
     * 逻辑删除
     * @param id
     * @return
     */
    @Select("update collect_relation set deleted = 1 where id = #{id}")
    public Integer deleteCollectRelation(Integer id);
}
